import { createApp } from 'vue'
import { createPinia } from 'pinia'



import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/styles/index.scss'
import { registerComp, registerIcons } from './utils'

import components from './components/form-designer/form-widget/field-widget'
import container from './components/form-designer/form-widget/container-widget'
import settingComponents from './components/form-designer/setting/index.ts'

const app = createApp(App)

app.use(createPinia())
app.use(router)
app.use(ElementPlus)

registerIcons(app)

registerComp(app,container) //注册左侧拖组件
registerComp(app,components) //注册左侧拖组件
registerComp(app,settingComponents) // 注册右侧配置组件

app.mount('#app')
